unit CadastrarUsuario;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Menus, DB, Mask, DBCtrls, ADODB, Grids, DBGrids,
  ExtCtrls;

type
  TfUsuario = class(TForm)
    MainMenu1: TMainMenu;
    File1: TMenuItem;
    Fechar1: TMenuItem;
    Cadastro1: TMenuItem;
    Usurio1: TMenuItem;
    Jogador1: TMenuItem;
    LimiteDbito1: TMenuItem;
    Ficha1: TMenuItem;
    Capil1: TMenuItem;
    Fechamento1: TMenuItem;
    DevoluodeFicha1: TMenuItem;
    orneio1: TMenuItem;
    RingGame1: TMenuItem;
    Sair1: TMenuItem;
    ADOTable1: TADOTable;
    ADOConnection1: TADOConnection;
    ADOTable1Cdigo: TAutoIncField;
    ADOTable1usuario: TWideStringField;
    ADOTable1senha: TWideStringField;
    Label1: TLabel;
    DBEdit1: TDBEdit;
    DataSource1: TDataSource;
    Label2: TLabel;
    DBEdit2: TDBEdit;
    Label3: TLabel;
    DBEdit3: TDBEdit;
    DBNavigator1: TDBNavigator;
    procedure Sair1Click(Sender: TObject);
    procedure Fechar1Click(Sender: TObject);
    procedure Jogador1Click(Sender: TObject);
    procedure LimiteDbito1Click(Sender: TObject);
    procedure Ficha1Click(Sender: TObject);
    procedure Capil1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  fUsuario: TfUsuario;

implementation

uses Menu, CadastrarJogador, Devolucao, CadastrarLimite, EntradaFichas,
  CadastrarCapile;

{$R *.dfm}

procedure TfUsuario.Sair1Click(Sender: TObject);
begin
Application.Terminate;
end;

procedure TfUsuario.Fechar1Click(Sender: TObject);
begin
Application.Terminate;
end;

procedure TfUsuario.Jogador1Click(Sender: TObject);
begin
fJogador.show;
fUsuario.Visible := false;
end;

procedure TfUsuario.LimiteDbito1Click(Sender: TObject);
begin
fLimite.show;
fUsuario.Visible := false;
end;

procedure TfUsuario.Ficha1Click(Sender: TObject);
begin
fFichas.show;
fUsuario.Visible := false;
end;

procedure TfUsuario.Capil1Click(Sender: TObject);
begin
fCapile.show;
fUsuario.Visible := false;
end;

end.
